插件crypter添加qq表情加密并支持回应密文进行解密,与添加运势新底图#1285
Closed
Kajiekazz wants to merge 5 commits intoFloatTech:masterfrom
Closed
插件crypter添加qq表情加密并支持回应密文进行解密,与添加运势新底图#1285Kajiekazz wants to merge 5 commits intoFloatTech:masterfrom
Kajiekazz wants to merge 5 commits intoFloatTech:masterfrom
Conversation
fumiama
requested changes
Feb 15, 2026
plugin/crypter/handlers.go
Outdated
| var faceTagRe = regexp.MustCompile(`\{\{face:(\d+)\}\}`) | ||
|
|
||
| func parseID(v interface{}) int64 { | ||
| n, _ := strconv.ParseInt(fmt.Sprintf("%v", v), 10, 64) |
Member
There was a problem hiding this comment.
Suggested change
| n, _ := strconv.ParseInt(fmt.Sprintf("%v", v), 10, 64) | |
| n, _ := strconv.ParseInt(fmt.Sprint(v), 10, 64) |
| return sb.String() | ||
| } | ||
|
|
||
| func deserializeMsg(s string) message.Message { |
Member
There was a problem hiding this comment.
不好。应当用FindAllStringSubmatch直接提取出所有数字。
| engine.OnRegex(`^(?:齁语加密|h加密)\s*(.+)$`).SetBlock(true).Handle(houEncryptHandler) | ||
| engine.OnRegex(`^(?:齁语解密|h解密)\s*(.+)$`).SetBlock(true).Handle(houDecryptHandler) | ||
| engine.OnRegex(re + `^(?:齁语加密|h加密)\s*(.+)$`).SetBlock(true).Handle(houEncryptHandler) | ||
| engine.OnRegex(re + `(?:齁语解密|h解密)\s*(.*)$`).SetBlock(true).Handle(houDecryptHandler) |
Contributor
Author
There was a problem hiding this comment.
在比如有人发密文,可以直接回复那条消息发xx解密,不用带参数
plugin/crypter/qqemoji.go
Outdated
| "strings" | ||
| "unicode/utf8" | ||
|
|
||
| "github.com/andybalholm/brotli" |
Co-authored-by: fumiama <41315874+fumiama@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.